@@ -129,7 +129,7 @@ class @Utils |
||
| 129 | 129 |
find('.agent-dry-run-log').text(json.log).end().
|
| 130 | 130 |
find('.agent-dry-run-events').text(json.events).end().
|
| 131 | 131 |
find('.agent-dry-run-memory').text(json.memory)
|
| 132 |
- active = if json.events.match(/^\[\s*\]$/) then 'tabLog' else 'tabEvents' |
|
| 132 |
+ active = if json.events.match(/^\[?\s*\]?$/) then 'tabLog' else 'tabEvents' |
|
| 133 | 133 |
$('#resultTabs a[href="#' + active + '"]').tab('show')
|
| 134 | 134 |
title: 'Dry Run Results', |
| 135 | 135 |
onHide: callback |